change puts to console.log