combined output loops