wrote kernels for xblend and yblend