reduce frame length