debugging through console.logging