added filtering of results