use hash values as arrays and create an array of hashes