adjust hierarchy