loop break; functionality