change type hierarchy