added the ability to add new attributes in a specific position among existing attributes