added a maximumfilter