cliques method works