part of bilateral filter done