added frame length thing