update codes and resource