k2c function

basic kernels