remove endpoint arg