removed code not used anymore from binary serialization.