cost -> path