In all this discussion, did anyone ask if the original array of accounts actually needs to be an array? If the order doesn't matter, than turn the array into a hash and work with it that way. xoa -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance