added start and end points