refine maxPoints