added createPoints and addPoint