don't have time to type
changed the way previous edges are constructed  for E2