change registration of global function to a static