initial path returning code.