changed endpoint to a default argument