working on real-time data binning