Fixed the filter method