trying to generate a map