add class serialize