replaced return class of createKernel