continued implementation of gradients for SM GPR