adding debugging console.logs