add dummy_index to canonical_variables