convert all this.points[] to this.point()