refactored statistics interface