removing unnecessary close