removed unused code
fixed pie chart