update select host func