measure mdl of each level