k4c function

basic kernels