update the resources