hierarchical structure learning & metacognition