changed edge detection