updated maxfilter_function.ipy