fixed bug with filter method