buildLines