simplifying dom