modify func snippet