models for the endpoints