syntax corrections ruby 1.9