fixing api call for update