create the functions kernelxy ... kernelzz