cleanup: terrain code.