use pointer to avoid copying of TerrCoord struct