optimize prediction a little bit. delete useless kernels