changed first_frame case to skip frames