put denoise methods into inner class denoise