updates to chart and bug fix