fix typo and add email notification