gets the data