adding weighted gaussian filter