script to run maxfilter.