finish data processing and make two graphs