using a setCoords function