adding the mmap method