removed a redundant variable