add attributes and console.log