change hash sytax to ruby 1.8