update length after pushing items to _bucket