changed kernels to take positions not particles