change resource code