changed listOfCoordinates to loC throughout