output fix for for-loop leak
output fix for for-loop leak