another funtion to print data for publication