first draft for  endpoint