error before the console.log. hopefully fixed it.