refactored the reporters centroid to use path variable