creates csv array