refactored getUnfilteredResults() and getValue()