multiple selection code updated