use condition for no child deletion