changes for the mmapread exmaple