Changed algorithm of scalloping filter