update Snapshot to use TextFormat class