it is not obvious to me why it must be closed at the end.