rename function
format tag attributes