completed 3.2
modify frame_sync (simplify)