fixed spacing issue in API calls