refactored and printed some useful stats