add console.log for logging