there is problem with remove statement but i can't able to find out. please help