apply advance filtering