utils and getCircleCoordinates function