for analog to digital conversion