code runs now
getMaxRaw and getMinRaw are now working