break out of for instead of switch