replaced continue with break