added comments to convertCoordinates