update for ruby 2