started refactoring the filters in util.js