modefied frame_checker.v