removing useless parent