added 2 mthods getCoordinates