rename locals to obj