organizing the data