statistics API simplified