updating gcomp function.