modify frame index