adding selection and searhc