edge detection not working yet