making kernel per fucntion