outputing the data for visualisation