simplifying dom structure