lines, math and logging