connected the start and end points