statistics saves, refactoring