changed the way the comp_stats hash is built