added function overwriteFilter