added main and coordinates.