merge the update of resource