cleaned up stats package