added third level fo clustering