add end to founded lines