first version of hierarchy