added kernels
removed brute force computations