created function InitPathFromTheGivenArrayByUsingLocalElement