use array for closing