functions to be used with G Framework