made some kernels faster