remove redundant points.