cleaned up creating the dictionary of name key:value pairs.