iterate route array