change ruby 1.8 hash coding style