fix line sections spagetti