input from csv files and text files