remove duplicate declaration & fix typo