Filtering for trait head equal cd