select branch finished