refactored api call
Merge remote-tracking branch 'origin/master'