added spring gain to constraint integration