update for put