updating the writing of attributes to data arrays