bug - use break, not last