updates for reading data