switched console.log