thanks again for this. ive implemented it, seems to be working and got an even more performance improvement by around 30%.