updating gmath