finish_frame