formatted the data