added time_to_frames