Revert "Edited foreach for catalog/cd/..."

This reverts commit 00e565bc3262155a0d82deaf7cbb70b31927e645.