refactoring summary filter