reverted breaking out iteration