remove unused filter code