functions kernelxx-kernelzz and bx-bz