adding hierarchical model