made the edge detector nicer?