stats_utils: simplification