fixed reduce kernels