If exgain is a global variable then just name it differently 
Of course when you call the function you can put whatever variable you like as the parameter (like 'exgain').

Of course when you call the function you can put whatever variable you like as the parameter (like 'exgain').