update for input