removed global variables. set default param to empty str