ex6 working except for killing parent