Iterates over values instead of keys

In this way we don't have to enter the keys back into the dictionaries