finish get cliques, add os code