added console.log parts