the code doesn't support ruby 1.9.3