changed maintain_point as ui