moved stats print to stats object