filtering in two different methods