remove needless local variable