modified console.log