updates to generalize semi-parametric dh-sp method