added some console.logs