add data and serialization.