replace alignment attributes