getting the structure of the data