tried to fix endpoint