Use declare, and fix typo