testing from stats.lib