map clusters onto the correct trees