working on hierarchy