adding offset to api call
fixed merge conflict