changed pie chart math