delete the use of Global funcs