adding mapKernel and util method