only iterate over active modes when rendering