I move creating storage for result after path index was created in array.