added constant for frames to skip
cleaning up new_frame