slicing array to get to route direction