renamed the endpoints