[1] re-organized code
[2] change concurrent queue to serial queue for pie chart creation