adding doc index trying to find byte length