transfer 2d smooth to C, ing