made small change to ADC logic