removed useless points from array.