added ToBytes()