automated the line info collection