feedback and adc

might need some changes to the code