points, lines, reset and optimization