step cannot be greater than frame length