added set_child_state and parent_inverted logic