using dictionaries to store and lookup values