remove useless kernels