update to terrain.rb