update resouce