added setAttribute name to each attribute