make sure contentLength is indexed