Make function out of navi path