changed func name: smooth2d -> gfilter2d