added serialization for products