control_logic