trying to find errors with console.logs not working