changing endpoints