Update cg and core