write snapshot data