ultimate find_path method