upload dictionaries function