worked on substituteUncertainties more