adding stack to the map values in the memmory