fixed endpoint issue