created tuple serializer and deserializer