general filter formatting work