better add endpoints return value