for nl-mmap