changed vedges to set; removed remnant debug code