reformated element attributes