added file-to-lines function
trying different approach with lines array