put the parent to sleep when it should