optimize heavy hitter