update Resource