when a line ends, create another line from it's end point