reset memory for mapper