change the hash style from ruby1.8 to ruby1.9