made updating only iterate over the values stored, not the whole map