Since error_dim will only ever `"x"` and `"y"` you shouldn't need that line. `"x"[0]` is the same as `"x"`.