first block of changes to put the chart back in