working under ruby 1.9