edits to restore LineMap