change to console.log, consider the diff broswer