add func for read data from file