skoff, i dont have much data in this array. about 5 - 10 lines max. however, i am using this method of foreach within foreach to work on multiple dimensions. i didnt realise this could be hard on the server. any recommendations how i can do the above without a double foreach loop, instead all in one loop?