adding edgeDetection