fix typos and remove unused declaration