globalFunctions to be updated