swap type and tagname