update for type dom