re-scale and organize all the data