Transferred editcg and addrctocg