update resources structure