use globals instead, and actually call the function