cleaned up terrainController