mv denominator for-each outside