cleaning up redundant parts of the multiselect code