simpler lastSibling calculation