moved console.log