added proper console.log