changed the buckets array to be volatile