ckernel reduction lifting code