added UF and clustering