refactoring static methods to use indexDoc arg only
clean up