make it work in ruby 2.0