cleaned up chart_stats