bug fix removing an unused variable