fixed accidental redeclaration of variable