new method for filtering by input type