update resource fetching method