minor changes to ADC related functions