separated raw data processing from graphs