add divide data into buckets