updated gpRegression optimization