change the resource