adc_functions added