replaced console.log