renamed object to obj (shadows builtin name)