added to console.log on the total amount that was calculated