collect the data before