account for newline. define some arrays