updated read_data to fix merge conflict