working mapgeneration