removed unused variable and method call