getallpaths fixed, path size=5