started implementing ADC routines