added console.logging