refactors stats methods