removing unused filter code