mark the global function and var