update max points on a line