migrate hash sintaxe to ruby 1.8