added a chart but buggy