working on detecting corners in lines