added tenants related func.