wrote a map generator