CODE: simplified looping over all representations of a stage