add max points on a line