prepared problem serialization