small changes to input digital and analogic