setup object for return