work on the bucket arrays