update for elements