fgwFunctions