removed an unused variable and method.