added the start and end points in auto