can you use http://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-fetch to simplify?