incorporate computing stats into printout