changes to bilateral filter