was having trouble accessing the items in the hash and this worked in irb