update filter code