initiate filter code