update for input changes