fixed filter code