path_length working