refactored split/join of filters