clean up filtering templates