adding weighted arithmetic mean filter