it can handle an array of hashes and turn it into a single hash