replaced next with break