update gg.cpp