use object initializer to set fields on unpack