made attributes come before elements