ruby 2 compability