use object properties in getDetails()