replace 'break' with 'next'