put a return after the ent_remove or set while(me) and not while(1)