refactored annother api call out.