check if memmap before returning new memmap