make immutable structs frozen