added console.logs