updating main cpp that still does not work