removed redundant api call