added comment describing loop break