created new localmemory 1d + 2d