cleanup parent objects code