minor optimization for deser