edge detection
adding amals changes