use select in computing references