check instance when deleting parent. more cleanup