split lC and sampleC into kernels