change kernel function