finished updating hierarchy library to include helper functions