multiple objects can be passed for serialization