better use of mmap