check all the path