destroy structs implicitly