flatten attribution