fix ADC, update main