added filtering to results generation