removed unnecessary local variable