finished prelim code for multi-select