typo anf pass key and message into the template implicitly