updated order cut, better line_weight algo