both ends of the line