1.  update resources.