arching, attcjing and edge detection