implement hash buckets properly