Removed unnecessary second API call