fix typos and console.log