file write setup/decide to use arrays