fix heirarchy