change endpoint also