last hash of array need to add {} for old ruby