next step is saving inMemoryMap