renamed resetDegrees function