added a TTC lines function