added indexes to buckets