added the new ADC code