solve the arbiter for loop problem