fix #7, avoid const defination in non-global scope