added printout to show end of child