transform line and char update