change setTenant into setTenantId