modify resource