remove branch from loop