update structure of attributes