redrawing when setting points