refactor filter/acc to be one method with a default acc parameter