wrapping up multi-select logic