cleaned up the data to make it easier to iterate through it