nit: the spacing here is all wrong (are we linting this?), also the use of `obj` is very confusing