fixed the closing out of seciton but