added dp kernels and mofified previous compute kernels