update resource register