complete addPoint method