added maxPath, path1, path2, path3