making that function more elegant
towards dict from mcm