added filtering steps