prepare filters for more extensive usage
refactoring filters to generalize to all filtering