transform to the final model data

do some formatting to get the final model data