master_logic