getSignCorrection function

workhorse for correctSigns