revert last change as it works only for post ruby 1.9