duration and period serialization