Remap insert and append line