first try of the bilateral transform