removed var redeclarations to make linter happy