dico to dictionary and update elements