added new method hVals and tests