Got it, in fact I use references (it's my question that wasn't clear enough), the thing is that I always stay with one value for the same keys, if I'll take my example from the question, then I get only one
entry. The references always clober each other and not added, I didn't seem to solve that yet.