don't pass global variables via function arguments