read data method