first step in implementing serializatoin