tested a new method for retrieving documents rather than sorting