support for non-pointer structures