add check for the csv file