finish with write to target file