if a child is destroyed the parent is called second, if a parent which is actually child is destroyed, the child destructor is not called