changes mainly for level.rb(2)