added path alg so I have it later