add points and lines