set and get End Point.