def makemap