added a console.log statement