endpoint implemented correctly