adding offset to api call