added rules for hierarchical learning