update the resources.