finalized pie chart server side
merging