work with points and lines