hey it worked smile i put ent_remove outside the while loop and now it works fine.. i guess it crashed cause 'my' becomes an empty pointer if removed while inside a 'while' loop.. anyway back to roasting goblins smile

thanks Poison smile