have a prototype meanfilter function...sort of