logic_finish