remove some extra variables from graph walking code