rename `e` to `expected`