added global scope to gproc