Update cs_gm.cpp