tidying up the kernels