change arrays in arrays to hashes to be more readable to humans