remove all points function