check if reparenting is necessary