[PD] selecting based on vectors