final data processing / starting to write models