change wait to kill one if it doesnt have children