'lines' function