fixed strem varible name and util function
new version for npm