fixed data to have proper dictionaries