minor changes to line trace functions