better preformating to highcharts data