removed use of "index" field in direction enum