bug fix with filter method