refactor dataStats and display