add 'static' for global function