removal of branch hashkey after loop exit