updated filterResults, untested