compatible to Ruby 1.9