reformat code in GcHelpers.php