getObject: code reformat