update factory function of filters