working on pie chart