added filtering method