chart2.c updated