finish serialization for tuple