modify frame and offset