changed edge handling