updating .resource