converted the hash to ruby 1.9 syntax