clean up getVoltage