removing one more unused variable and assignment