module to read data