remove ruby 1.9.x syntax to maintain 1.8.x compatibility