made sure that the solution for the current path is propagated to the caller.