adding assert() against adc