change the input of kernel_func()