trying to get edge detection to work