figured out how to do selection and estimation