to fix: insert with duplicate and handling multiple buckets