remove name attribute where not necessary