update gaussian filter for code reuse