library'd stripTraverse method