putting same key twice should update the value