preparation for filters and comparator