got hierarchical model working