if no path then return new path instead of null