add the min/max regression for line/poly