fix su sum
Optimization for line directions extractions