Rewriting filters