naive solution to expanding memory map