what is adm_set_which ? I don't see it being used anywhere ...