created method to open csv files