removed global data structure for inner loop of feature traversals