making it compatible for ruby 1.8