use member variables to store read data