serializing spheres