slight changes in bilateral filter