fix typo and make dictionary global