made dictionaries instead of arrays