update cg.rb