map generation system. pattern and phase