dictionary generation