added another method to DocumentIndex and DIRS