renamed mode enum to a bool to iterateModel
manual merge of moderename