updating endpoint