added substPathPiInv