fixed results query and algo
Merge branch 'requests'