added ComponentTreePruner to reduce the height of a component tree