some minor changes in the ADC setup code