tidy ups.  Q: Why does this need to be passed to _closeLoops for it to work?