making MM trees correctly