changed the break condition to be 'end' instead of <enter>