update elements