fix filter method