remove global function call