rename `locals` to `obj`