fixed retobj constructor