changed info to array of dictionaries