cleaned up some unused code in terrain