removed unnused local variable