remove unneeded children