lines.cpp stuff