lines partitioning